﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="edit.aspx.cs" Inherits="AnyOffice.general.hrms.manage.edit" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
    <title></title>
    <link rel="stylesheet" type="text/css" href="/module/date_selector/popcalendar.css">
    <script src="/module/date_selector/popcalendar.js"></script>
    <script src="/aspnet_client/core/function.js"></script>
    <script>
        function CheckForm() {
            if (document.Form1.txtUserName.value == "") {
                alert("姓名不能为空！");
                document.Form1.txtUserName.focus();
                return (false);
            }

            if (document.Form1.ddlDeptId.value == "") {
                alert("请选择所属！");
                return (false);
            }

            if (!checkIsDate(document.Form1.txtBirthday.value)) {
                alert("出生日期不正确！");
                document.Form1.txtBirthday.focus();
                return (false);
            }

            if (!checkIsDate(document.Form1.txtWorkDate.value)) {
                alert("参加工作时间不正确！");
                document.Form1.txtWorkDate.focus();
                return (false);
            }

            if (!checkIsDate(document.Form1.txtJoinDate.value)) {
                alert("加入本单位时间不正确！");
                document.Form1.txtJoinDate.focus();
                return (false);
            }

            if (!checkIsDate(document.Form1.txtContractDate1.value)) {
                alert("入学期-开始日期不正确！");
                document.Form1.txtContractDate1.focus();
                return (false);
            }

            if (!checkIsDate(document.Form1.txtContractDate2.value)) {
                alert("入学期-结束日期不正确！");
                document.Form1.txtContractDate2.focus();
                return (false);
            }
            return true;
        }

        function CheckFile() {
            if (document.Form1.fileAttach.value == "") {
                alert("请选择附件！");
                return (false);
            }
            return true;
        }
    </script>
</head>
<body class="bodycolor" topmargin="5">
    <form id="Form1" method="post" runat="server">
    <asp:Panel ID="pnlMain" runat="server">
        <table class="small" cellspacing="0" cellpadding="3" width="100%" border="0">
            <tr>
                <td class="Big">
                    <img height="20" width="20" src="/images/menu/hrms.gif" align="absmiddle">
                    <span class="big3">编辑学生档案<asp:Literal ID="litUserName" runat="server"></asp:Literal></span>
                </td>
            </tr>
        </table>
        <table class="small" cellspacing="1" cellpadding="2" width="95%" align="center" bgcolor="#000000"
            border="0">
            <tr>
                <td class="TableHeader" nowrap colspan="5">
                    <b>&nbsp;基本信息</b>
                </td>
            </tr>
            <tr>
                <td class="TableData" nowrap>
                    姓名：
                </td>
                <td class="TableData" colspan="2">
                    <asp:TextBox ID="txtUserName" runat="server" Columns="10" CssClass="BigInput"></asp:TextBox>
                    <input id="UserId" type="hidden" runat="server" />
                    <asp:Literal ID="litUserId" runat="server"></asp:Literal>
                </td>
                <td class="TableData" rowspan="5" colspan="1" align="center">
                    <asp:Literal ID="litPhoto" runat="server" Text="暂无照片"></asp:Literal>
                </td>
            </tr>
            <tr>
                <td class="TableData" nowrap>
                    编号：
                </td>
                <td class="TableData" colspan="2">
                    <input class="BigInput" id="txtNumber" type="text" maxlength="50" size="10" name="txtNumber"
                        runat="server">
                </td>
            </tr>
            <tr>
                <td class="TableData" nowrap>
                    所属：
                </td>
                <td class="TableData" colspan="2">
                    <asp:DropDownList ID="ddlDeptId" runat="server" CssClass="BigSelect">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="TableData" nowrap>
                    性别：
                </td>
                <td class="TableData" colspan="2">
                    <select class="BigSelect" id="selectSex" name="selectSex" runat="server">
                        <option value="True">男</option>
                        <option value="False">女</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td class="TableData" nowrap>
                    出生日期：
                </td>
                <td class="TableData" nowrap colspan="2">
                    <input class="BigInput" id="txtBirthday" type="text" maxlength="10" size="10" name="txtBirthday"
                        runat="server">
                    <img style="cursor: hand" onclick="popUpCalendar(this,txtBirthday,'yyyy-mm-dd','');"
                        src="/module/date_selector/calendar.gif" align="absMiddle" border="0">
                </td>
            </tr>
            <tr>
                <td class="TableData" nowrap>
                    <asp:Literal ID="litUpload" runat="server" Text="照片上传："></asp:Literal>
                </td>
                <td colspan="3" class="TableData">
                    <input class="SmallInput" id="filePhoto" type="file" name="filePhoto" runat="server">
                    （gif/jpeg格式，最大
                    <asp:Literal ID="litImageMaxSize" runat="server"></asp:Literal>
                    k）
                </td>
            </tr>
            <tr>
                <td class="TableData" nowrap>
                    民族：
                </td>
                <td class="TableData">
                    <input class="BigInput" id="txtNation" type="text" maxlength="50" size="10" name="txtNation"
                        runat="server">
                </td>
                <td class="TableData" nowrap>
                    身份证号码：
                </td>
                <td class="TableData">
                    <input class="BigInput" id="txtCardNo" type="text" maxlength="50" size="20" name="txtCardNo"
                        runat="server">
                </td>
            </tr>
            <!--<tr>
                <td class="TableData" nowrap>
                    婚姻状况：
                </td>
                <td class="TableData">
                    <select class="BigSelect" id="selectMarry" name="selectMarry" runat="server">
                        <option value=""></option>
                        <option value="未婚">未婚</option>
                        <option value="已婚">已婚</option>
                        <option value="离异">离异</option>
                    </select>
                </td>
                <td class="TableData">
                    政治面貌：
                </td>
                <td class="TableData">
                    <select class="BigSelect" id="selectPolitics" name="selectPolitics" runat="server">
                        <option value=""></option>
                        <option value="群众">群众</option>
                        <option value="团员">团员</option>
                        <option value="预备党员">预备党员</option>
                        <option value="党员">党员</option>
                    </select>
                </td>
            </tr>-->
            <tr>
                <td class="TableData" nowrap>
                    籍贯：
                </td>
                <td class="TableData">
                    <input class="BigInput" id="txtNativePlace" type="text" maxlength="50" size="15"
                        name="txtNativePlace" runat="server">
                </td>
                <td class="TableData">
                    户口所在地：
                </td>
                <td class="TableData">
                    <input class="BigInput" id="txtHukouPlace" type="text" maxlength="50" size="15" name="txtHukouPlace"
                        runat="server">
                </td>
            </tr>
            <!--<tr>
                <td class="TableData" nowrap>
                    学历：
                </td>
                <td class="TableData">
                    <select class="BigSelect" id="selectEducation" name="selectEducation" runat="server">
                        <option value=""></option>
                        <option value="小学">小学</option>
                        <option value="初中">初中</option>
                        <option value="高中">高中</option>
                        <option value="中专">中专</option>
                        <option value="大专">大专</option>
                        <option value="大本">大本</option>
                        <option value="硕士">硕士</option>
                        <option value="博士">博士</option>
                        <option value="博士后">博士后</option>
                    </select>
                </td>
                <td class="TableData">
                    职称：
                </td>
                <td class="TableData">
                    <input class="BigInput" id="txtTechPost" type="text" maxlength="50" size="15" name="txtTechPost"
                        runat="server">
                </td>
            </tr>-->
            <tr>
                <td class="TableData" nowrap>
                    毕业院校：
                </td>
                <td class="TableData">
                    <input class="BigInput" id="txtSchool" type="text" maxlength="50" size="15" name="txtSchool"
                        runat="server">
                </td>
                <td class="TableData">
                    专业：
                </td>
                <td class="TableData">
                    <input class="BigInput" id="txtSpeciallity" type="text" maxlength="50" size="15"
                        name="txtSpeciallity" runat="server">
                </td>
            </tr>
           <!-- <tr>
                <td class="TableData" nowrap>
                    参加工作时间：
                </td>
                <td class="TableData" nowrap>
                    <input class="BigInput" id="txtWorkDate" type="text" maxlength="10" size="10" name="txtWorkDate"
                        runat="server">
                    <img style="cursor: hand" onclick="popUpCalendar(this,txtWorkDate,'yyyy-mm-dd','');"
                        src="/module/date_selector/calendar.gif" align="absMiddle" border="0">
                </td>
                <td class="TableData" nowrap>
                    加入本单位时间：
                </td>
                <td class="TableData" nowrap>
                    <input class="BigInput" id="txtJoinDate" type="text" maxlength="10" size="10" name="txtJoinDate"
                        runat="server">
                    <img style="cursor: hand" onclick="popUpCalendar(this,txtJoinDate,'yyyy-mm-dd','');"
                        src="/module/date_selector/calendar.gif" align="absMiddle" border="0">
                </td>
            </tr>
            <tr>
                <td class="TableData" nowrap>
                    用工类型：
                </td>
                <td class="TableData">
                    <input class="BigInput" id="txtContractType" type="text" maxlength="50" size="15"
                        name="txtContractType" runat="server">
                </td>
                <td class="TableData">
                    职务：
                </td>
                <td class="TableData">
                    <input class="BigInput" id="txtPost" type="text" maxlength="50" size="15" name="txtPost"
                        runat="server">
                </td>
            </tr>-->
            <tr>
                <td class="TableData" nowrap>
                    监护人：
                </td>
                <td class="TableData">
                    <input class="BigInput" id="txtHomeTel" type="text" maxlength="50" size="15" name="txtHomeTel"
                        runat="server">
                </td>
                <td class="TableData">
                    联系方式：
                </td>
                <td class="TableData">
                    <input class="BigInput" id="txtEmail" type="text" maxlength="200" size="20" name="txtEmail"
                        runat="server">
                </td>
            </tr>
            <tr>
                <td class="TableData" nowrap>
                    家庭住址：
                </td>
                <td colspan="3" class="TableData">
                    <input class="BigInput" id="txtHomeAddr" type="text" maxlength="200" size="50" name="txtHomeAddr"
                        runat="server">
                </td>
            </tr>
            <tr>
                <td class="TableData" nowrap="nowrap">
                    入学期：
                </td>
                <td class="TableData" colspan="3">
                    <input class="BigInput" id="txtContractDate1" type="text" maxlength="10" size="10"
                        name="txtContractDate1" runat="server">
                    <img style="cursor: hand" onclick="popUpCalendar(this,txtContractDate1,'yyyy-mm-dd','');"
                        src="/module/date_selector/calendar.gif" align="absMiddle" border="0">
                    至
                    <input class="BigInput" id="txtContractDate2" type="text" maxlength="10" size="10"
                        name="txtContractDate2" runat="server">
                    <img style="cursor: hand" onclick="popUpCalendar(this,txtContractDate2,'yyyy-mm-dd','');"
                        src="/module/date_selector/calendar.gif" align="absMiddle" border="0">
                </td>
            </tr>
            <!--<tr>
            <td class="TableData" nowrap="nowrap">
                年休假：</td>
            <td class="TableData" colspan="3">
                <INPUT class="BigInput" id="txtLeaveType" type="text" maxLength="50" size="15" name="txtLeaveType"
								runat="server"></td>
        </tr>-->
            <tr>
                <td class="TableHeader" nowrap colspan="4">
                    <b>&nbsp;在校已购保险记录：</b>
                </td>
            </tr>
            <tr>
                <td colspan="5" class="TableData">
                    <textarea class="BigInput" id="txtPostChange" name="txtPostChange" rows="3" wrap="on"
                        cols="70" runat="server"></textarea>
                </td>
            </tr>
            <tr>
                <td class="TableHeader" nowrap colspan="5">
                    <b>&nbsp;校外已购保险记录：</b>
                </td>
            </tr>
            <tr>
                <td class="TableData" colspan="5">
                    <textarea class="BigInput" id="txtEdu" name="txtEdu" rows="3" wrap="on" cols="70"
                        runat="server"></textarea>
                </td>
            </tr>
            <tr>
                <td class="TableHeader" nowrap colspan="5">
                    <b>&nbsp;学生健康情况：病史、敏感史、家族病史记录：</b>
                </td>
            </tr>
            <tr>
                <td class="TableData" colspan="5">
                    <textarea class="BigInput" id="txtResume" name="txtResume" rows="3" wrap="on" cols="70"
                        runat="server"></textarea>
                </td>
            </tr>
            <tr>
                <td class="TableHeader" nowrap colspan="5">
                    <b>&nbsp;社会关系：</b>
                </td>
            </tr>
            <tr>
                <td class="TableData" colspan="5">
                    <textarea class="BigInput" id="txtSociaty" name="txtSociaty" rows="3" wrap="on" cols="70"
                        runat="server"></textarea>
                </td>
            </tr>
            <tr>
                <td class="TableHeader" nowrap colspan="5">
                    <b>&nbsp;奖惩记录：</b>
                </td>
            </tr>
            <tr>
                <td class="TableData" colspan="5">
                    <textarea class="BigInput" id="txtReward" name="txtReward" rows="3" wrap="on" cols="70"
                        runat="server"></textarea>
                </td>
            </tr>
            <tr>
                <td class="TableHeader" nowrap colspan="5">
                    <b>&nbsp;职务情况：</b>
                </td>
            </tr>
            <tr>
                <td class="TableData" colspan="5">
                    <textarea class="BigInput" id="txtCertificate" name="txtCertificate" rows="3" wrap="on"
                        cols="70" runat="server"></textarea>
                </td>
            </tr>
            <tr>
                <td class="TableHeader" nowrap colspan="5">
                    <b>&nbsp;培训记录：</b>
                </td>
            </tr>
            <tr>
                <td class="TableData" colspan="5">
                    <textarea class="BigInput" id="txtTrain" name="txtTrain" rows="3" wrap="on" cols="70"
                        runat="server"></textarea>
                </td>
            </tr>
            <!--<tr>
                <td class="TableHeader" nowrap colspan="5">
                    <b>&nbsp;担保记录：</b>
                </td>
            </tr>
            <tr>
                <td class="TableData" colspan="5">
                    <textarea class="BigInput" id="txtSurety" name="txtSurety" rows="3" wrap="on" cols="70"
                        runat="server"></textarea>
                </td>
            </tr>
            <tr>
                <td class="TableHeader" nowrap colspan="5">
                    <b>&nbsp;劳动合同签订情况：</b>
                </td>
            </tr>
            <tr>
                <td class="TableData" colspan="5">
                    <textarea class="BigInput" id="txtContract" name="txtContract" rows="3" wrap="on"
                        cols="70" runat="server"></textarea>
                </td>
            </tr>
            <tr>
                <td class="TableHeader" nowrap colspan="5">
                    <b>&nbsp;社保缴纳情况：</b>
                </td>
            </tr>
            <tr>
                <td class="TableData" colspan="5">
                    <textarea class="BigInput" id="txtInsure" name="txtInsure" rows="3" wrap="on" cols="70"
                        runat="server"></textarea>
                </td>
            </tr>-->
            <tr>
                <td class="TableHeader" nowrap colspan="5">
                    <b>&nbsp;体检记录：</b>
                </td>
            </tr>
            <tr>
                <td class="TableData" colspan="5">
                    <textarea class="BigInput" id="txtBodyExamim" name="txtBodyExamim" rows="3" wrap="on"
                        cols="70" runat="server"></textarea>
                </td>
            </tr>
            <tr>
                <td class="TableHeader" nowrap colspan="5">
                    <b>&nbsp;备 注：</b>
                </td>
            </tr>
            <tr>
                <td class="TableData" colspan="5">
                    <textarea class="BigInput" id="txtMemo" name="txtMemo" rows="3" wrap="on" cols="70"
                        runat="server"></textarea>
                </td>
            </tr>
            <tr>
                <td class="TableHeader" nowrap colspan="5">
                    <b>&nbsp;附件文档：</b>
                </td>
            </tr>
            <tr>
                <td class="TableData" colspan="4">
                    <asp:Panel ID="pnlAttach" runat="server" Visible="False">
                        <asp:ListBox ID="ltbFileList" runat="server" Rows="1"></asp:ListBox>
                        <asp:Button ID="btnRemoveFile" runat="server" CssClass="SmallButton" Text="删除" OnClick="btnRemoveFile_Click">
                        </asp:Button>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td class="TableData" nowrap="nowrap">
                    附件上传：
                </td>
                <td class="TableData" colspan="3">
                    &nbsp;
                    <input class="SmallInput" id="fileAttach" type="file" size="26" name="fileAttach"
                        runat="server">
                    <asp:Button ID="btnAddFile" runat="server" CssClass="SmallButton" Text="添加" OnClick="btnAddFile_Click">
                    </asp:Button>
                </td>
            </tr>
            <tr class="TableControl">
                <td nowrap align="center" colspan="5">
                    <asp:Button ID="btnSubmit" runat="server" CssClass="BigButton" Text="保存" OnClick="btnSubmit_Click">
                    </asp:Button>
                    &nbsp;&nbsp;&nbsp;
                    <input class="BigButton" onclick="location='dept.aspx?dept_id=<%=ViewState["DeptId"] %>'"
                        type="button" value="返回">
                </td>
            </tr>
        </table>
        <br>
        <br>
    </asp:Panel>
    <asp:Literal ID="litMessage" runat="server"></asp:Literal>
    </form>
</body>
</html>
